package com.ztgf.commodity.models.bo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * author: chenyu.wang
 * date: 2020-05-27 14:01
 * Description: 发布商品bo
 */
@Data
public class CommodityReleaseBO implements Serializable {

    @ApiModelProperty(value = "id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "商品主图")
    private String logoUrl;
    @ApiModelProperty(value = "商品logo图片;图片集合，逗号隔开")
    private String logoUrls;
    @ApiModelProperty(value = "商品视频地址;视频集合，逗号隔开")
    private String videoUrls;
    @ApiModelProperty(value = "商品名称")
    private String name;
    @ApiModelProperty(value = "商品描述")
    private String description;
    @ApiModelProperty(value = "发货区域")
    private Long sendAreaId;
    @ApiModelProperty(value = "可售区域")
    private String availableArea;
    @ApiModelProperty(value = "发货时间;规定天数发货")
    private Integer sendDays;
    @ApiModelProperty(value = "商品类型;0现货、1预售")
    private Integer type;
    @ApiModelProperty(value = "店铺id")
    private Long shopId;
    @ApiModelProperty(value = "品牌id")
    private Long brandId;
    @ApiModelProperty(value = "分类id")
    private Long categoryId;
    @ApiModelProperty(value = "商品详情")
    private String notes;
    @ApiModelProperty(value = "是否掌柜推荐;0否、1是")
    private Integer isRecommend;
    @ApiModelProperty(value = "是否新品上架;0否、1是")
    private Integer isNew;
    @ApiModelProperty(value = "是否镇店之宝;0否、1是")
    private Integer isTreasure;
    @ApiModelProperty(value = "质保期;单位月")
    private Integer warrantyMonth;
    @ApiModelProperty(value = "产品规格说明书")
    private String productSpecificationUrl;
    @ApiModelProperty(value = "商品编号")
    private String commodityNumber;
    @ApiModelProperty(value = "上传产品检验合格证书;图片集合，逗号隔开")
    private String productCertificateUrls;
    @ApiModelProperty(value = "是否支持会员折扣;0支持，1不支持")
    private Integer isVipDiscounts;
    @ApiModelProperty(value = "盾构品牌ids")
    private String shieldBrandId;
    @ApiModelProperty(value = "盾构部位ids")
    private String shieldPartsId;
    @ApiModelProperty(value = "属性信息")
    private String attrs;
    @ApiModelProperty(value = "预售产品首款比例，%")
    private Integer firstBalance;
    @ApiModelProperty(value = "预售产品尾款比例，%")
    private Integer tailBalance;
    @ApiModelProperty(value = "商品套餐信息")
    private String combos;
    @ApiModelProperty(value = "商品参数信息")
    private String paramValues;
    @ApiModelProperty(value = "是否询价，0否，1是")
    private Integer isInquiry;
    @ApiModelProperty(value = "卖家地址id")
    private Long sellerAddressId;
    @ApiModelProperty(value = "筛选属性ids")
    private String filterIds;
    @ApiModelProperty(value = "已选择的销售属性")
    private String salesAttributes;
    @ApiModelProperty(value = "标签ids")
    private String labelIds;
    @ApiModelProperty(value = "备货时间;规定天数发货")
    private Integer stockDays;
    @ApiModelProperty(value = "审核状态")
    private Integer auditStatus = 0;
    @ApiModelProperty(value = "发布状态")
    private Integer isPublish = 0;
    @ApiModelProperty(value = "是否京东 0 否，1 是")
    private Integer jdFlag = 0;
    @ApiModelProperty(value = "京东商品池")
    private String jdPageNum;
}
